package com.zzj.ecology.admin.controller.system;//package com.zzj.ecology.admin.controller.system;
//
//import com.zzj.ecology.admin.controller.BaseController;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//public class SysRequestPathController extends BaseController {
//
//    @Autowired
//    private SysRequestPathService sysRequestPathService;
//
//
////    @PostMapping(value = "/admin/sysRequestPath/ajax/findPageList")
////    public HttpResult findPageList(Page page) {
////        HttpResult result = sysRequestPathService.findPageList(page);
////        return result;
////    }
////
////
////    /**
////     * 根据前端提供的 requireName 查询数据库是否存在，不存在返回 true
////     * @param requireName
////     * @return
////     */
////    @PostMapping(value = "/admin/sysRequestPath/ajax/isNotExistRequireName")
////    public boolean isNotExistRoleCode(String requireName) {
////        if (StringUtils.isEmpty(requireName)) {
////            return false;
////        }
////        boolean isNoExist = sysRequestPathService.isNotExistRequireName(requireName);
////        return isNoExist;
////    }
////
////    @PostMapping(value = "/admin/sysRequestPath/ajax/createAndGrant")
////    public HttpResult createAndGrant(SysRequestPath sysRequestPath, Integer[] permissionids) {
////        HttpResult result = sysRequestPathService.createAndGrant(sysRequestPath, permissionids);
////        //if(permissionids != null && permissionids.length >= 0) System.out.println(permissionids.length);
////        return result;//HttpResult.success();
////    }
////
////    @PostMapping(value = "/admin/sysRequestPath/ajax/updateAndGrant")
////    public HttpResult updateAndGrant(SysRequestPath sysRequestPath, Integer[] permissionids) {
////        if(permissionids == null || permissionids.length == 0) return HttpResult.error();
////        HttpResult result = sysRequestPathService.updateAndGrant(sysRequestPath, permissionids);
////        return result;
////    }
////
////    @PostMapping(value = "/admin/sysRequestPath/ajax/deleteAndUnGrant")
////    public HttpResult deleteAndUnGrantByIds(Integer[] ids) {
////        HttpResult result = sysRequestPathService.deleteAndUnGrantByIds(ids);
////        return result;
////    }
////
////    @PostMapping(value = "/admin/sysRequestPath/ajax/update")
////    public HttpResult update(SysRequestPath sysRequestPath) {
////        // 修改前确认 是否存在 一样数据
////        HttpResult result = sysRequestPathService.update(sysRequestPath);
////        return result;
////    }
//
//
//}
